<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>上传文件</title>
</head>
<body onload="loadAccount()">

    <form action="/upload" method="post" enctype="multipart/form-data">
        账号: <input type="text" name="account" readonly="readonly" id="1"><br>
        头像: <input type="file" name="image"><br>
        <input type="submit" value="提交" onclick="confirm()">
    </form>

</body>
<script>
    function loadAccount(){
        document.getElementById(1).value=sessionStorage.getItem("user");
    }
    function confirm(){
        location = "/webapp/student.html";
    }
</script>
</html>
